package com.iespring.bean.app.user.bo;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

/**
 * Auth: 杨宇健
 * Time: 2023/1/2 16:59
 * Description:
 **/
@NoArgsConstructor
@Data
public class WxResetBo {

    /**
     * mobile : 19392803703
     * code : 407386
     * password : yang1234
     */

    private String mobile;
    private String code;
    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-zA-Z])(.{8,20})$",
            message = "密码长度为8到20位,必须包含字母和数字，字母区分大小写")
    private String password;
}
